import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("alumni_event_apply", { schema: "alumni" })
export class AlumniEventApply {
  @PrimaryGeneratedColumn({ type: "int", name: "id", unsigned: true })
  id: number;

  @Column("int", { name: "user_id", unsigned: true, default: () => "'0'" })
  userId: number;

  @Column("int", { name: "event_id", unsigned: true, default: () => "'0'" })
  eventId: number;

  @Column("varchar", { name: "content", length: 200, default: () => "'名称'" })
  content: string;

  @Column("int", { name: "create_time", unsigned: true, default: () => "'0'" })
  createTime: number;
}
